package lesson3.slides.io;

import java.io.*;

public class BufferedExample {

    public static void main(String[] args) {
        try {
            BufferedReader input =
                    new BufferedReader(new FileReader("filesink2.txt"));
            String inputLine;
            System.out.println("File output...");
            while ((inputLine = input.readLine()) != null) {
                System.out.println(inputLine);
            }
            input.close();
        } catch (IOException e) {
            System.err.println(e);
        }
    }
}